package vn.com.bookstore.domain.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author QuangMinh
 */
public class Publisher implements Serializable {
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String name;
	private String title;
	private String address;
	private String bossName;
	private String phone;
	private String emailBussiness;
	private String description;
	private int accountId;
	private Date registerDate;
	private boolean active;

	public Publisher() {
	}

	public Publisher(Integer id) {
		this.id = id;
	}

	public Publisher(Integer id, String name, String title, String address,
			String bossName, String phone, String emailBussiness,
			int accountId, Date registerDate, boolean active) {
		this.id = id;
		this.name = name;
		this.title = title;
		this.address = address;
		this.bossName = bossName;
		this.phone = phone;
		this.emailBussiness = emailBussiness;
		this.accountId = accountId;
		this.registerDate = registerDate;
		this.active = active;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBossName() {
		return bossName;
	}

	public void setBossName(String bossName) {
		this.bossName = bossName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmailBussiness() {
		return emailBussiness;
	}

	public void setEmailBussiness(String emailBussiness) {
		this.emailBussiness = emailBussiness;
	}

	public int getAccountId() {
		return accountId;
	}

	public void setAccountId(int accountId) {
		this.accountId = accountId;
	}

	public Date getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}

	public boolean getActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	@Override
	public int hashCode() {
		int hash = 0;
		hash += (id != null ? id.hashCode() : 0);
		return hash;
	}

	@Override
	public boolean equals(Object object) {
		// TODO: Warning - this method won't work in the case the id fields are
		// not set
		if (!(object instanceof Publisher)) {
			return false;
		}
		Publisher other = (Publisher) object;
		if ((this.id == null && other.id != null)
				|| (this.id != null && !this.id.equals(other.id))) {
			return false;
		}
		return true;
	}

	@Override
	public String toString() {
		return "vn.com.iflex.Publisher[ id=" + id + " ]";
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
